
export class Product {
  icon:string // 图片
  title:string // 标题
  desc:string // 描述
  priceOld: number // 原价
  priceNew: number // 现价
  id?:number
  detailImg1:string
  detailImg2:string


  constructor(icon:string, title:string, desc:string, priceOld: number, priceNew?: number,detailImg1?:string,detailImg2?:string,id?:number) {
    this.icon = icon
    this.title = title
    this.desc = desc
    this.priceOld = priceOld
    this.priceNew = priceNew
    this.id = id
    this.detailImg1 = detailImg1
    this.detailImg2 = detailImg2
  }


}